import  req from '../http';
//获取验证码

export function getCode(datas){
    console.log(datas)
      return req({
            url:"/system/client/getCode?phone="+datas.phone,
            method:"get",
      })
}
// 注册
export function register(datas) {
    console.log(datas)
    return  req({
        url: '/system/client/register',
        method: 'post',
        data:datas
    })
}
// 登录
export function login(datas) {
    return req({
        url:'/system/client/login',
        method: 'post',
        data: datas
    })
}